Skip to content

test(mcpx/e2e): classify MCPX_ADAPTERS_ALLOW_BARE as harness-set (#13481 slice) - #13636

Merged
dezren39 merged 1 commit into
mainfrom
lane-au36-13481-envguard
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-au36-13481-envguard

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

One slice of #13481: the internal/e2e env-guard failure.

TestEveryRegistryVariableIsHarnessSetOrSafe (the #1992 guard) fails on main because MCPX_ADAPTERS_ALLOW_BARE — the env name of the adapters.allowBare setting, declared in the settings registry (internal/settings/scriptenv.go) — is classified in neither envguard table in pkgs/mcpx/internal/e2e/envguard_test.go.

Classification: the e2e harness sets this variable itself — the adapters.allowBare effect probe (internal/e2e/effect_test.go) calls e.setenv("MCPX_ADAPTERS_ALLOW_BARE=true") for its own child env — so per the guard's own definitions it belongs in harnessSetMCPX, not safeMCPX. One line.

Verification (laptop worktree off main a4f0344b89a):

  • Before: go test ./internal/e2e -run TestEveryRegistryVariableIsHarnessSetOrSafe -count=1 fails with exactly this one unclassified variable.
  • After: that test passes, together with the behaviour half TestTheHarnessBuildsChildrenFromTheAllowlist and the effect probe TestAdaptersAllowBareGatesABareDeclaration (package result ok).

Out of scope: the internal/e2e + internal/sdnotify 10-minute timeout class — #13481 stays open on that remainder.


Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Slice of #13481. The #1992 env guard
(TestEveryRegistryVariableIsHarnessSetOrSafe) fails on main:
MCPX_ADAPTERS_ALLOW_BARE (setting adapters.allowBare) is declared in
the settings registry but classified in neither envguard table. The
e2e harness sets the variable for its own child env in the
adapters.allowBare effect probe (internal/e2e/effect_test.go), so it
belongs in harnessSetMCPX per the guard's own definitions.

Verified in a laptop worktree: the guard test failed before the change
with exactly this one unclassified variable and passes after, together
with the behaviour half (TestTheHarnessBuildsChildrenFromTheAllowlist)
and the effect probe itself (TestAdaptersAllowBareGatesABareDeclaration).
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 33 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 10b5f5da-bcde-4c13-8d40-27f65debdd0f
Commits

Reviewing files that changed from the base of the PR and between ea5aee7 and 7c8652d.

Files selected for processing: 1

  • pkgs/mcpx/internal/e2e/envguard_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 0645099 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-au36-13481-envguard branch November 23, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant